import Router from '@koa/router';
import CompanyController from '@/controllers/CompanyController';
import auth from '@/middlewares/auth';

const router = new Router();

// 公司管理路由
router.get('/api/companies', auth, CompanyController.list);
router.get('/api/companies/:id', auth, CompanyController.get);
router.post('/api/companies', auth, CompanyController.create);
router.put('/api/companies/:id', auth, CompanyController.update);
router.delete('/api/companies/:id', auth, CompanyController.delete);

export default router;


